import yaml

def load_yaml(path):
    with open(path, encoding="utf-8" ) as f:
        return yaml.safe_load(f)

    # f = open(path, encoding="utf-8" )
    # s = f.read()
    # data = yaml.safe_load(s)
    # return data

if __name__ == '__main__':

    d = load_yaml("pythonProject/data/test_1api.yaml")
    print(d)